/** for Color */
import java.awt.Color;

/** for JFrame */
import javax.swing.JFrame;

/**
 * HW 12b & 13b, "Tetris"<br><br>
 * 
 * This class is a main class that sets up the GUI. 
 * The program represents the classic game Tetris, with maybe couple modified functions. 
 * 
 * @author Hyun Seo Chung
 * @version 1.0 04/21/12
 */
public class Tetris {
	
	/**
	 * This is a main method that sets up the GUI. 
	 * It creates the main frame, sets up the background,
	 *  create and sets the ControlPanel (main panel) sets up some default settings. 
	 * @param args
	 */
	public static void main(String[] args) {
		final JFrame frame = new JFrame("Tetris");
		frame.setBackground(Color.getHSBColor(0, 0, Numbers.POINT_O_FIVE.getDecimal()));
		final ControlPanel panel = new ControlPanel();
		frame.setContentPane(panel);
		frame.pack();
		frame.setVisible(true);
	}

	/** 
	 * This is a tostring method.
	 * @return tostring.
	 */
	@Override
	public String toString() {
		return super.toString();
	}
}
